package cn.tedu._03mybatis.pojo.vo;

import cn.tedu._03mybatis.pojo.entity.Weibo;

import java.util.List;

/**
 * ResultMap多表查询
 */
public class ResultMapVO2 {
    //用户ID，用户名，微博列表
    private Long id;
    private String username;
    private List<Weibo> weibos;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public List<Weibo> getWeibos() {
        return weibos;
    }

    public void setWeibos(List<Weibo> weibos) {
        this.weibos = weibos;
    }

    @Override
    public String toString() {
        return "ResultMapVO2{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", weibos=" + weibos +
                '}';
    }
}
